<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Module extends Model
{
    protected $fillable = ['project_id', 'title'];

    /**
     * 获取与用户关联的电话号码
     */
    public function tasks()
    {
        return $this->hasMany('App\Models\Task',"module_id","id");
    }
}